package liurong.driver.concurrent;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;

public class MemeryAnaTest {
	private static final Map<Integer, Byte[]> MAP = new ConcurrentHashMap<Integer, Byte[]>();
	private static final AtomicInteger ATOMIC_INTEGER = new AtomicInteger(0);

	public static void main(String[] args) throws Exception {
		while (true) {
			MAP.put(ATOMIC_INTEGER.incrementAndGet(), new Byte[1024]);
		}
	}
}